package com.selenium.base;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class SelectDriver {
	
	public WebDriver driverName(String browser) {
		if(browser.equalsIgnoreCase("fireFox")) {
			WebDriver driver = new FirefoxDriver();
			return driver;
		}else {
			WebDriver driver = new ChromeDriver();
			return driver;
		}
	}
}
